package com.veinin.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.veinin.dao.UserDAO;
import com.veinin.model.User;
import com.veinin.service.UserManager;

@Component("userManager")
public class UserManagerImpl implements UserManager {
	private UserDAO userDAO;
	
	public UserDAO getUserDAO() {
		return userDAO;
	}

	@Resource(name="userDAO")
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	@Override
	public void save(User user) {
		
	}

	@Override
	public boolean update(User user) {
		return false;
	}

	@Override
	public String loginCheck(User user) {
		String msg = this.userDAO.loginCheck(user);
		return msg;
	}
	
}
